import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/config/element/element.cfg'
import '@/config/nprogress/nprogress.cfg'

Vue.config.productionTip = false
//根据环境判断是否需要mock
if (process.env.VUE_APP_MOCK.toLowerCase() === 'true') {
    require('@/mock')
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
